package cn.jolyoulu.common.redis.constant;

/**
 * @Author: JolyouLu
 * @Date: 2025/1/28 23:19
 * @Description
 */
public enum GlobalRedisConstant implements IRedisKey{
    REDIS_CACHE("REDIS_CACHE:%s:%s");
    private String key;

    GlobalRedisConstant(String key) {
        this.key = key;
    }

    @Override
    public String keyFormat(String... args){
        return "GLOBAL:" + String.format(this.key,args);
    }
}
